﻿namespace Trading.IBApi

open System

module DateTimeExtensions = 
    let Epoch = DateTime(year = 1970, month = 1, day = 1)

    type DateTime with 
        static member FromUnixTime : string -> DateTime = float >> Epoch.AddSeconds
        static member FromUnixTimeLocal (x: string) = Epoch.AddSeconds(float x).ToLocalTime()


